﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>倒计时自动跳转</title>
    <script type="text/javascript">
        let time = 5;
        function autoJump() {
            let obj=document.getElementById("ft");
            obj.innerText = time;
            if (time > 0) {
                window.setTimeout("autoJump()", 1000);
                time--;
            } else {
                location.href="./a.jsp";
            }
        }
        autoJump();
    </script>
</head>
<body>
<center>
    数据保存成功, 系统将在<font id="ft" color="blue">5</font>自动跳转<br>
    如果没有跳转, 请点击<a href="./a.jsp">这里</a>
</center>
</body>
</html>